package com.itic.web.mem.order.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.itic.appbase.framework.common.controller.BaseController;
import com.itic.ht.mem.order.persistence.model.MemberOrder;
import com.itic.web.mem.order.service.AppOrderService;
import com.itic.web.qo.TokenData;
import com.itic.web.ro.ResResult;


@Controller
@RequestMapping(value="/app/order")
public class AppOrderController extends BaseController {
    @Autowired
    private AppOrderService appOrderService;

    /**
     * 添加支付订单
     * @param android
     * @return
     */
    @RequestMapping(value="/getOrder")
    @ResponseBody
    public ResResult getOrder(MemberOrder temp,TokenData data,String itemId){
    	return appOrderService.getOrder(temp,data,itemId);
    }
   
    /**
     * 我的积分流水
     * @param android
     * @return
     */
    @RequestMapping(value="/list")
    @ResponseBody
    public ResResult list(TokenData data){
    	
    	return appOrderService.getMyOrderList(data);
    }
  
    

}